import { Component } from '@angular/core';

@Component({
    selector: 'app-user-student',
    templateUrl: './student.component.html',
    styleUrls: ['./student.component.css']
})

export class StudentComponent {
    heroes = ['Windstorm', 'Bombasto'];

    constructor() { }
    addHero(newHero: string) {
        this.heroes.push(newHero);
    }
    delHero(index: number) {
        this.heroes.splice(index, 1);
    }
}